<%@ page contentType="text/html; charset=utf-8" import="java.util.*" pageEncoding="utf-8"%>
<script>
function searchTo(){
	var qword=$('#qword').val();
	if($.trim(qword)==""){
		return false;
	}
	var url=$(":radio[name='stype']:checked").val();
	var searchUri=url+$.trim(qword);
	window.open(encodeURI(searchUri));
}
$(function(){$("#infoshow").hide();});
function validateForm(){
	var msg="";
	var $login_form=$("#login_form");
	var usercode=$("#usercode",$login_form).val();
	var pwd=$("#pwd",$login_form).val();
	var checkcode=$("#checkcode",$login_form).val();
	if($.trim(usercode)==""){
		msg=("登录账号不能为空");
	}else if($.trim(pwd)==""){
		msg=("密码不能为空");
	}else if($.trim(checkcode)==""){
		msg="验证码不能为空";
	}
	if(msg!=""){
		$("#infoshow").addClass("fieldmsg-error").show().html(msg);
	}
	return msg=="";
}
</script>
<div class="top">
	<table width="900px" height="51px" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td rowspan="2" width="660px">
	<div style="float:left;heigth:100%">
	<img style="margin-top:5px;" height="77px" border="0" alt="" src="${path }/themes/images/logo.png">
	</div>
			</td>
			<td width="240px">
		<div class="mini_nav_fl">
			<ul style="float:right;margin-right:0px;">
				<li style=""><a href="javascript:void(0)" class="first" onClick="SetHome(this,window.location);">设为首页</a></li>
			</ul>
	</div>
	
			</td>
		</tr>
		
		
		<tr>
			<td align="right"  class="navigation">
		<ul>
			<li class="home"><a href="${path }">首 页</a></li>
			<li><a href="${path }/userinfo/home">资讯</a></li>
			<li class="Download"><a href="${path }/contact.jsp">联系我们</a></li>  
      </ul>
			</td>
		</tr>
	</table>
</div>

<div class="topsearchbar">
百度<input type="radio" value="http://www.baidu.com/s?wd=" checked="checked" name="stype">
谷歌<input type="radio" value="http://www.google.com.hk/search?hl=zh-CN&source=hp&biw=&bih=&q=" name="stype">
有道<input type="radio" value="http://www.youdao.com/search?ue=utf8&keyfrom=web.index&q=" name="stype">
<input type="text" id="qword"><button onclick="searchTo();" style="height:27px;">搜索</button>
</div>